import java.util.Scanner;

public class Function {

    public static boolean isLeapYear(int year) {
        if((year % 4==0 && year % 100!=0) || year % 400==0) {
            return true;
        }else {
            return false;
        }
    }

    static public void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int year=scanner.nextInt();
        if(isLeapYear(year)) {
            System.out.println("Leap year");
        }else {
            System.out.println("Not a leap year");
        }
    }
}
